<html>

<script src="../axton.js"></script>

<body>

<div id="a">click here</div>


</body>

<script>
    var h1 = {
        name : "h1",
        runner : function() {
            alert(this.name);
        }
    };
    var h2 = {
        name : "h2",
        runner : function(evt, element) {
            alert(element.id);
        }
    };
    var obj = $("a");
    axton.eventManager.addListener(obj, "onclick", new axton.eventManager.EventHandler( h1, "runner"));
    axton.eventManager.addListener(obj, "onclick", new axton.eventManager.EventHandler( h2, "runner"));
    axton.eventManager.removeListener(obj, "onclick", new axton.eventManager.EventHandler( h1, "runner"));
</script>



</html>